namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class ElementMap : ClassMap<ElementDataModel>
    {
        public ElementMap()
        {
            this.Table("Elements");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ElementID");
            this.Map(x => x.PageId).Column("PageID");
            this.Map(x => x.PartId).Column("PartID");
            this.Map(x => x.ElementValue).Column("ElementValue");
            this.Map(x => x.ElementFile).Column("ElementFile");
            this.Map(x => x.ElementValuePreview).Column("ElementValuePreview");
            this.Map(x => x.ElementFilePreview).Column("ElementFilePreview");
        }
    }
}